<div class="operateBox">
  <div id="p_toolbar"></div><?php $this->loadTemplate('toolbar-save');?>
  <h2><?php echo $this->title?></h2>
</div>

<form id="form1"  name="form1" method="post" action="" class="post-tr" >
  <input type="hidden" id="data_id" name="data_id" value="<?php echo $data['id'];?>" />
  <div class="sh">归属：</div>
  <div class="sp"><?php html::selectR('name="data[parent_id]"', $this->getTree(), $data['parent_id'])?></div>
  <div class="sh">名称：</div>
  <div class="sp"><input name="data[name]" type="text" value="<?php e_h($data['name']);?>" maxlength="50" /></div>
  <div class="sh">排序：</div>
  <div class="sp"><input name="data[ordering]" type="text" size="3" value="<?php echo $data['ordering'];?>" /></div>
  
  <div class="sh">检索方式：</div>
  <div class="sp"><?php html::select('name="data[index_type]"', array(1=>'字检索',2=>'范围检索'), $data['index_type'])?></div>
  <div class="sh">允许多个值：</div>
  <div class="sp"><?php html::radio('name="data[is_m]"', lang::Ag(array(''=>'no', 1=>'yes')), $data['is_m'])?></div>
  <div class="sh">输入方式：</div>
  <div class="sp"><?php html::radio('name="data[arr][iType]"', array(''=>'自由输入', 'date'=>'日期格式', 'radio'=>'从定义值选择'), $data['arr']['iType'])?></div>
  <div class="sh">定义可选择的值：</div>
  <div class="sp"><textarea name="data[arr][custom_val]" rows="2"><?php e_h($data['arr']['custom_val']);?></textarea></div>
  <div class="sh">默认值：</div>
  <div class="sp"><input name="data[arr][default_val]" type="text"  value="<?php e_h($data['arr']['default_val']);?>" /></div>
  <div class="sh">输入提示：</div>
  <div class="sp"><input name="data[arr][note]" type="text" value="<?php e_h($data['arr']['note']);?>" /></div>


  <div class="separator"></div>
  <div class="sh">状态：</div>
  <div class="sp"><?php html::radio('name="data[state]"', lang::Ag($this->State), $data['state']); ?></div> 
  <div class="cl_l"></div>
</form>